package com.cenxi.dao.domain;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author cenxi
 * @Date 2023/10/19 15:14
 * @Version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value ="excel_cx")
public class Excelcx {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @ExcelProperty(index = 0,value = "名称")
    @TableField(value = "name")
    private String name;
    @ExcelProperty(index = 1,value = "年龄")
    @TableField(value = "age")
    private Integer age;
    @ExcelProperty(index = 2,value = "家庭住址")
    @TableField(value = "addre")
    private String addre;
    @ExcelProperty(index = 3,value = "手机号码")
    @TableField(value = "phone")
    private String phone;
}
